package com.leonard.event.event;

import com.leonard.event.entity.UserBean;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * @description:
 * @author: qizheng.sun
 * @createDate: 2020/9/29
 * @version: 1.0
 */
@Getter
public class UserRegisterEvent extends ApplicationEvent {
    //注册用户对象
    private UserBean user;

    /**
     * 重写构造函数
     * @param source 发生事件的对象
     * @param user 注册用户对象
     */
    public UserRegisterEvent(Object source,UserBean user) {
        super(source);
        this.user = user;
    }
}
